package com.cyy.springbootinit.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 楼宇
 * @TableName building
 */
@TableName(value ="building")
@Data
public class Building implements Serializable {
    /**
     * 自增整数，主键，楼宇ID
     */
    @TableId(type = IdType.AUTO)
    private Integer buildingId;

    /**
     * 字符串，楼宇名称
     */
    private String buildingName;

    /**
     * 字符串，楼宇地址
     */
    private String address;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}